package top.heliming.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * description: //TODO
 *
 * @author: heliming
 * @date:2019/05/22 上午 1:49
 */
@Data
@Table(name = "l_user")
public class User {

  //主键自动驼峰映射
  @Id //主键ID 表中字段 id
  private Integer id;
  @Column(name = "id_no")
  private String idNo;
  @Column(name = "user_name")
  private String userName;
  @Column(name = "pass_word")
  private String passWord;

  private String name;
  private Integer age;
  private Integer sex;
  private Date birthday;
  private Date created;
  private Date updated;
  private String note;

  @Override
  public String toString() {
    return "User{" +
        "id=" + id +
        ", idNo='" + idNo + '\'' +
        ", userName='" + userName + '\'' +
        ", passWord='" + passWord + '\'' +
        ", name='" + name + '\'' +
        ", age=" + age +
        ", sex=" + sex +
        ", birthday=" + birthday +
        ", created=" + created +
        ", updated=" + updated +
        ", note='" + note + '\'' +
        '}';
  }
}